package top.kwseeker.spring.aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import top.kwseeker.spring.aop.bean.EmployeeDTO;
import top.kwseeker.spring.aop.service.EmployeeManager;

public class AopXmlBasedMain {

	public static void main(String[] args) {

		ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
		EmployeeManager manager = (EmployeeManager) context.getBean("employeeManager");

		manager.getEmployeeById(1);
		manager.createEmployee(new EmployeeDTO());
		manager.deleteEmployee(100);
	}
}
